import { createSlice } from "@reduxjs/toolkit";

const tabSlice=createSlice({
    name: "tab",
    initialState: {
        isCollapsed: false
    },
    reducers: {
        setIsCollapsed: (state, action) => {
            state.isCollapsed = !state.isCollapsed;
        }
    }
});

export const { setIsCollapsed } = tabSlice.actions;
export default tabSlice.reducer;